<?php
//print '<pre>';
//var_dump($this->session->userdata('jabatan'));
//print '</pre>';
//die();
?>
<!--
This is a minified version of the ThemeForest-Theme "Peach - Clean & Smooth Admin Template".
Author: Simon Stamm (Stammi)

Note: If you buy my theme on ThemeForest, you will receive the non-minified and commented/documentated version!
This is a minified version of my theme to prevent stealing.
-->
<!--[if lt IE 7]><html class="no-js ie6 oldie" lang=en><![endif]-->
<!--[if IE 7]><html class="no-js ie7 oldie" lang=en><![endif]-->
<!--[if IE 8]><html class="no-js ie8 oldie" lang=en><![endif]--><!--[if gt IE 8]><!-->
<html class="no-js" lang="en" xmlns="http://www.w3.org/1999/xhtml">
	<!--<![endif]-->
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title><?= $title ?></title>
		<meta name="description" content="" />
		<meta name="author" content="" />
		<meta name="viewport" content="width=device-width,initial-scale=1" />
		<base href="<?php echo base_url() ?>"/>
		<link rel="stylesheet" href='css/style.css' type="text/css" />
		<link rel="stylesheet" href="css/sidebar.css" type="text/css" />
		<script src="<?php echo base_url() ?>js/libs/modernizr-2.0.6.min.js" type="text/javascript">
		</script>
		<meta charset="UTF-8" />
		<script src="<?= base_url()?>js/libs/jquery-1.6.4.min.js">
		</script>
		<script src="<?= base_url()?>js/libs/jquery-ui-1.8.16.min.js">
		</script>
	</head>
	<body>
		<div id="height-wrapper">
			<header>
				<div id="header_toolbar">
					<div class="container_12">
						<h1 class="grid_8">Gondang SI</h1>
						<div class="grid_4">
							<div class="toolbar_large">
								<div class="toolbutton">
									<div class="toolicon">
										<img src="<?= base_url()?>img/icons/16x16/user.png" width="16" height="16" alt="user"/>
									</div>
									<div class="toolicon">
										<div style="color: white">
											<span><?= $this->session->userdata('jabatan')?></span>
										</div>
									</div>
									<div class="toolmenu">
										<div class="toolcaption">
											<a href="<?= base_url(); ?>login/logout" style="color: white">Logout</a>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<nav id="header_main">
					<div class="container_12">
						<ul id="nav_main">
							<li <?php if ($id == 1) echo "class='current'" ?>>
								<a href="#">
									<img src="<?= base_url()?>img/icons/25x25/dark/computer-imac.png" width="25" height="25" alt=""/>Proyek
								</a>
								<ul>
									<li <?php if (strcmp($type, "daftar_proyek") == 0) echo "class='current'" ?>>
										<a href="<?= base_url()?>utama/daftar_proyek">Daftar Proyek</a>
									</li>
									<?php if ((( (strcmp($this->session->userdata('jabatan'), "Admin") == 0)) ||
									     (((strcmp($this->session->userdata('jabatan'), "Sekretaris")  == 0) )) ||
									     ((strcmp($this->session->userdata('jabatan'), "Direktur utama") == 0)) ||
									     (strcmp($this->session->userdata('Direktur teknik'), "Direktur utama") == 0) )) {?>
									<li <?php if (strcmp($type, "create_proyek") == 0) echo "class='current'" ?>>
										<a href="<?= base_url()?>utama/create_proyek">Tambah Proyek</a>
									</li>
									<?php }?>
								</ul>
							</li>

							<?php if (((strcmp($this->session->userdata('jabatan'), "Admin") == 0) ||
									 ((strcmp($this->session->userdata('jabatan'), "Sekretaris")  == 0) )) ||
									 ((strcmp($this->session->userdata('jabatan'), "Direktur utama") == 0) )) {?>
							<li <?php if ($id == 2) echo "class='current'" ?>>
								<a href="#">
									<img src="<?= base_url()?>img/icons/25x25/dark/user-comment.png" width="25" height="25" alt=""/>Daftar Pegawai
								</a>
								<ul>
									<li <?php if (strcmp($type, "daftar_pegawai") == 0) echo "class='current'" ?>>
										<a href="<?= base_url()?>utama/daftar_pegawai">Daftar Pegawai</a>
									</li>
									<li <?php if (strcmp($type, "create_pegawai") == 0) echo "class='current'" ?>>
										<a href="<?= base_url()?>utama/create_pegawai">Tambah Pegawai</a>
									</li>
								</ul>
							</li>
							<?php }?>
						</ul>
					</div>
				</nav>
				<div id="nav_sub">
				</div>
			</header>
			<div id="content-wrapper" class="container_12" role="main" style="">
			<?php echo $this->flash_message->show_all();?>

